<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/11/6
 * Time: 10:15
 */

namespace app\api\controller;


use cmf\controller\HomeBaseController;
use think\Db;

/**
 * Class LawyerController
 * @package app\api\controller
 * 一合专家模块
 */
class LawyerController extends HomeBaseController
{

    /**
     * 专家列表
     */
    public function lawyer_list()
    {
        $list = Db::name('team')->where('status',1)->select();

        return_json(1,'获取成功',$list);

    }

    /**
     * 专家详情
     */
    public function lawyer_details()
    {
        $id = request()->param('id');
        $lawyer_details = Db::name('team')->where('id',$id)->find();
        $lawyer_details['introduce'] = htmlspecialchars_decode($lawyer_details['introduce']);

        return_json(1,'获取数据成功',$lawyer_details);

    }


}